package com.ccys.db.vo.app.paymentMethodScreen;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @program: WhiteCoat
 * @description: 获取银行卡集合的返回Vo
 * @author: ZhangJingCan
 * @create: 2024-01-29 17:16
 **/

@Data
public class GetCardListVo {

    /**
     * Select  Lower(MC_ID) + '-' + MC_code As id,
     * 			MC_request_card_number_last4 As masked_card,
     * 			[dbo].[fn_Get_MemberCardType](MC_request_card_type) As [type],
     * 			MC_request_card_expiry_date As [expiry_date],
     * 			MC_created_on As created_on,
     * 			MC_is_default As is_default,
     * 			MC_paypal_email As email,
     * 			ISNULL(tbl_Member_Card.is_from_paypal_gateway, 0) AS is_from_paypal,
     * 			ISNULL(tbl_Member_Card.is_zalopay_gateway, 0) AS is_from_zalopay
     * 	From tbl_Member_Card WITH(NOLOCK)
     * 	Where Mem_ID = @PRM_account_id
     * 	And ISNULL(is_zalopay_gateway,0) = Case When @patient_country_of_residence = 245 Then 1 Else 0 End
     * 	Order By MC_is_default DESC, MC_created_on Desc
     */

    private String id;//": "RDnFDQ8zgZNCfd6S%2fBhitaiEIrrxHS8kR7q%2bOvbcjDpENip1MBPKU%2fHYLz7k3YtokoBO7lFq6Fao3BGZInB3%2bA%3d%3d",

    @JsonProperty("masked_card")
    private String maskedCard;//": "1111",

    private String type;//": "Visa",

    @JsonProperty("expiry_date")
    private String expiryDate;//": "02/2024",

    @JsonProperty("created_on")
    private String createdOn;//": "2024-01-18T16:22:21.373",

    @JsonProperty("is_default")
    private String isDefault;//": true,

    private String email;//": "",

    @JsonProperty("is_from_paypal")
    private String isFromPaypal;//": true,

    @JsonProperty("is_from_zalopay")
    private String isFromZalopay;//": false

}
